package org.cuckoos.android.test;

import org.cuckoos.android.DefaultSocketService;
import org.cuckoos.android.SocketService;
import org.cuckoos.android.command.EntryCommand;
import org.cuckoos.android.domain.User;
import org.cuckoos.android.ui.AppActivity;

import android.test.AndroidTestCase;


public class EntryCommandTester extends AndroidTestCase{
	private AppActivity mock = new AppActivity();
	SocketService hs ;
	public void setUp(){
		hs = new DefaultSocketService();
		hs.start(mock);
	}
	
	
	public void testExecute(){
		User user = new User("bugu","bugu");
		EntryCommand ec = new EntryCommand(hs.getSocket(),user);
		ec.execute();
	}
}
